package com.sky.financelake.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.Toolbar;

import com.sky.financelake.R;
import com.sky.financelake.base.BaseA;
import com.sky.financelake.base.BaseToolA;
import com.sky.financelake.databinding.ActivityStockToolBinding;

import dagger.hilt.android.AndroidEntryPoint;

@AndroidEntryPoint
public class StockToolA extends BaseToolA {

    private ActivityStockToolBinding binding;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityStockToolBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        Toolbar toolbar = binding.toolbarContainer.toolbar;
        initToolbar(toolbar,getString(R.string.stock_tool));

        AppCompatTextView tvPlateTool = binding.tvPlateTool;
        tvPlateTool.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(StockToolA.this,PlateToolA.class));
            }
        });

        AppCompatTextView tvChangeRateTool = binding.tvChangeRateTool;
        tvChangeRateTool.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(StockToolA.this,PlateToolA.class));
            }
        });

        AppCompatTextView tvFangSuo = binding.tvFangSuo;
        tvFangSuo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(StockToolA.this,PlateToolA.class));
            }
        });

        AppCompatTextView tvThreeRedBottom = binding.tvThreeRedBottom;
        tvThreeRedBottom.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(StockToolA.this,ThreeRedBottomA.class));
            }
        });

        AppCompatTextView tvCustom = binding.tvCustom;
        tvCustom.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(StockToolA.this,TagSelectToolA.class));
            }
        });
    }
}
